package com.naiterui.ehp.bs.emr.feign;

import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 医生接口
 */
@ApiIgnore
@FeignClient(name = "emrAd", url = "${ehp.domain.ad}", configuration = FeignConfiguration.class)
public interface IDoctorFeignClient {

    /**
     * 根据IM会话ID查咨询会话ID
     *
     * @param sessionId
     * @return
     */
    @GetMapping("/inner/consult/consultSessionId")
    Long consultSessionId(@RequestParam("sessionId") String sessionId) throws BusinessException;
}